#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void mouseMoveEvent(QMouseEvent* event);

    void wheelEvent(QWheelEvent* event);

    void keyPressEvent(QKeyEvent* event);

    void timerEvent(QTimerEvent* event);

    void moveEvent(QMoveEvent*);

    void resizeEvent(QResizeEvent*);

private:
    Ui::Widget *ui;
    int total = 0;
    int timerId;
};
#endif // WIDGET_H
